﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="index.aspx.cs" Inherits="index" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>安康供电段燃油计划提报系统</title>
    <style type="text/css">

        .style15
        {
            font-size: x-large;
            font-weight: bold;
        }
        .style16
        {
            width: 100%;
        }
            
        .style11
        {
            font-size: small;
            text-align: left;
        }
        #table1
        {
            width: 900px;
        }
        .style18
        {
            height: 90px;
        }
        .style21
        {
            font-size: small;
        }
        .style22
        {
            height: 120px;
        }
        .style23
        {
            color: #808080;
        }
        .style24
        {
            font-family: 黑体;
        }
        </style>
<SCRIPT>
<!-- 

top.window.moveTo(0,0); 
if  (document.all)  { 
top.window.resizeTo(screen.availWidth,screen.availHeight); 
} 
else  if  (document.layers||document.getElementById)  { 
if  (top.window.outerHeight<screen.availHeight||top.window.outerWidth<screen.availWidth){ 
top.window.outerHeight  =  screen.availHeight; 
top.window.outerWidth  =  screen.availWidth; 
} 
} 

//--> 
</SCRIPT>
</head>
<body background="images/login-bg.jpg">
    <form id="form1" runat="server">
    <div style="text-align: center; font-size: small">
                <br /><a name="shuju"></a>
                <span class="style15"><span class="style24">安 康 供 电 段 燃 油 计 划 提 报 系 统</span><br 
                    class="style24" />
                <br />
                </span><asp:ScriptManager ID="ScriptManager1" runat="server">
                </asp:ScriptManager>
      
                    <asp:Button ID="Button2" runat="server" PostBackUrl="~/Default.aspx" 
                        Text="燃油计划提报" />
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:Button ID="Button3" runat="server" 
                        PostBackUrl="~/Default.aspx?lb=审批" Text="燃油计划审批" />
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:Button ID="Button4" runat="server" 
                        PostBackUrl="~/Default.aspx?lb=受理" Text="燃油计划受理" />
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:Button ID="Button5" runat="server" 
                        PostBackUrl="http://10.109.229.100:8080/youkaguanli/" Text="油卡管理" 
                    Font-Bold="True" ForeColor="#0066FF" />
                <br />
                <br />
      
    </div>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
    <div style="font-size: small">
        <asp:SqlDataSource ID="SqlDataSource_chejian" runat="server" ConnectionString="<%$ ConnectionStrings:xxnewsConnectionString %>">
        </asp:SqlDataSource>
        <asp:SqlDataSource ID="SqlDataSource_banzu" runat="server" ConnectionString="<%$ ConnectionStrings:xxnewsConnectionString %>">
        </asp:SqlDataSource>
    
        <asp:SqlDataSource ID="SqlDataSource_chehao" runat="server" 
            ConnectionString="<%$ ConnectionStrings:xxnewsConnectionString %>">
        </asp:SqlDataSource>
    
        <asp:SqlDataSource ID="SqlDataSource_mingcheng" runat="server" 
            ConnectionString="<%$ ConnectionStrings:xxnewsConnectionString %>" 
            SelectCommand="SELECT [mingcheng] FROM [ranyou] group by mingcheng">
        </asp:SqlDataSource>
    
        <table ID="table7" align="center" border="0" cellpadding="0" cellspacing="0" 
            width="95%">
            <tr>
                <td height="10" width="9">
                    <img align="absMiddle" border="0" height="10" src="images/l_1_1.jpg" 
                        width="9" /></td>
                <td background="images/l_1_8.jpg" width="100%">
                </td>
                <td height="10" width="9">
                    <img align="absMiddle" border="0" height="10" src="images/l_1_7.jpg" 
                        width="9" /></td>
            </tr>
            <tr>
                <td background="images/l_1_2.jpg" class="style22">
                </td>
                <td align="left" bgcolor="#ffffff" valign="top" width="100%" class="style22">
                    <table ID="table8" align="center" border="0" cellpadding="0" cellspacing="0" 
                        width="100%">
                        <tr>
                            <td class="style18">
                                &nbsp; 类别<asp:DropDownList ID="DropDownList_lei" runat="server" AutoPostBack="True" 
                                    onselectedindexchanged="DropDownList_lei_SelectedIndexChanged">
                                      <asp:ListItem>请选择</asp:ListItem>
                                      <asp:ListItem>汽车</asp:ListItem>
                                      <asp:ListItem>轨道车</asp:ListItem>
                                      <asp:ListItem>发电机</asp:ListItem>
                                </asp:DropDownList>
                                &nbsp;&nbsp;&nbsp; 燃油种类<asp:DropDownList ID="DropDownList_mingcheng" runat="server" 
                                    onselectedindexchanged="DropDownList_lei_SelectedIndexChanged" 
                                    AppendDataBoundItems="True" DataSourceID="SqlDataSource_mingcheng" 
                                    DataTextField="mingcheng" DataValueField="mingcheng">
                                    <asp:ListItem>请选择</asp:ListItem>
                                </asp:DropDownList>
                                &nbsp;&nbsp;&nbsp; 日期<asp:DropDownList ID="nian" runat="server" AppendDataBoundItems="True">
                                    <asp:ListItem>请选择</asp:ListItem>
                                </asp:DropDownList>
                                年<asp:DropDownList ID="yue" runat="server" AppendDataBoundItems="True">
                                    <asp:ListItem>请选择</asp:ListItem>
                                </asp:DropDownList>
                                月<span class="style11">&nbsp;&nbsp;&nbsp; 审批情况</span><asp:DropDownList ID="DropDownList_shenpi" 
                                    runat="server" CssClass="style11">
                                    <asp:ListItem>全部</asp:ListItem>
                                    <asp:ListItem>车间未审批</asp:ListItem>
                                    <asp:ListItem>段未审批</asp:ListItem>
                                    <asp:ListItem>段已审批未受理</asp:ListItem>
                                    <asp:ListItem>材料科已受理</asp:ListItem>
                                    <asp:ListItem>全部段已审批</asp:ListItem>
                                </asp:DropDownList>
                                <span class="style11">&nbsp;&nbsp;&nbsp; 列支情况</span><asp:DropDownList ID="DropDownList_liezhi" 
                                    runat="server" CssClass="style11">
                                    <asp:ListItem>全部</asp:ListItem>
                                    <asp:ListItem>成本</asp:ListItem>
                                    <asp:ListItem>静态检测</asp:ListItem>
                                    <asp:ListItem>达速施工</asp:ListItem>
                                    <asp:ListItem>其他</asp:ListItem>
                                </asp:DropDownList>
                                <br />
                                <br /> &nbsp; 车间<asp:DropDownList ID="DropDownList_sscj" runat="server" 
                                    AppendDataBoundItems="True" AutoPostBack="True" CssClass="style11" 
                                    DataSourceID="SqlDataSource_chejian" DataTextField="ch_pwname" 
                                    DataValueField="ch_pwname" 
                                    onselectedindexchanged="DropDownList_sscj_SelectedIndexChanged">
                                    <asp:ListItem>请选择</asp:ListItem>
                                </asp:DropDownList>
                                班组<asp:DropDownList ID="DropDownList_zrbz" runat="server" 
                                    AppendDataBoundItems="True" AutoPostBack="True" CssClass="style11" 
                                    DataSourceID="SqlDataSource_banzu" DataTextField="ch_pwname" 
                                    DataValueField="ch_pwname" 
                                    onselectedindexchanged="DropDownList_zrbz_SelectedIndexChanged">
                                    <asp:ListItem>请选择</asp:ListItem>
                                </asp:DropDownList>
                                车号<asp:DropDownList ID="DropDownList_chehao" runat="server" 
                                    AppendDataBoundItems="True" CssClass="style11" 
                                    DataSourceID="SqlDataSource_chehao" DataTextField="chehao" 
                                    DataValueField="chehao">
                                    <asp:ListItem>请选择</asp:ListItem>
                                </asp:DropDownList>
                                <span class="style23">&nbsp;&nbsp; 如需查询具体车号，请先选择类别</span><br />
                                <br />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                &nbsp;
                                <asp:Label ID="Label_tiaojian" runat="server" style="color: #FF3300" 
                                    Text="Label"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td>
                                <table ID="table9" border="0" cellpadding="0" cellspacing="0" width="100%">
                                    <tr>
                                        <td background="images/line.jpg" height="1">
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <table ID="table10" border="0" cellpadding="0" cellspacing="0" width="100%">
                                                <tr>
                                                    <td align="middle" height="35" width="24%">
                                                        <img align="absMiddle" border="0" height="25" src="images/l_1_10.jpg" 
                                                            width="19" /></td>
                                                    <td align="left" style="text-align: center" width="54%">
                                                        <asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/images/sub_1.jpg" 
                                                            onclick="ImageButton1_Click" />
                                                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                                        <asp:ImageButton ID="ImageButton2" runat="server" 
                                                            ImageUrl="~/images/sub_2.jpg" onclick="ImageButton2_Click" />
                                                    </td>
                                                    <td align="middle" valign="center" width="22%">
                                                        <img align="absMiddle" border="0" height="15" src="images/l_1_12.jpg" 
                                                            width="49" /></td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                    </table>
                </td>
                <td background="images/l_1_6.jpg" class="style22">
                </td>
            </tr>
            <tr>
                <td height="10" width="9">
                    <img align="absMiddle" border="0" height="10" src="images/l_1_3.jpg" 
                        width="9" /></td>
                <td background="images/l_1_4.jpg">
                </td>
                <td height="10" width="9">
                    <img align="absMiddle" border="0" height="10" src="images/l_1_5.jpg" 
                        width="9" /></td>
            </tr>
        </table>
    
        <br />
    
     </div>
        <div style="font-size: small">     
            <table class="style16">
                <tr>
                    <td style="text-align: center">
                        <b>
                        <asp:GridView ID="GridView1" runat="server" AllowPaging="True" 
                            AutoGenerateColumns="False" CellPadding="4" DataKeyNames="id" 
                            EmptyDataText="没有符合条件的燃油计划" 
                            EnableModelValidation="True" ForeColor="#333333" 
                            style="text-align: center; font-size: 9pt" 
                            ondatabound="GridView1_DataBound" 
                            onpageindexchanged="GridView1_PageIndexChanged" 
                            onpageindexchanging="GridView1_PageIndexChanging" 
                            onrowdatabound="GridView1_RowDataBound" Font-Bold="False" PageSize="30" 
                            Width="1550px">
                            <AlternatingRowStyle BackColor="White" />
                            <Columns>
                                <asp:TemplateField HeaderText="序号"></asp:TemplateField>
                                <asp:BoundField DataField="id" HeaderText="编号" InsertVisible="False" 
                                    ReadOnly="True" SortExpression="id" Visible="False" />
                                <asp:BoundField DataField="lei" HeaderText="类别" SortExpression="lei" >
                                <ItemStyle Width="40px" />
                                </asp:BoundField>
                                <asp:BoundField DataField="chejian" HeaderText="所属车间" 
                                    SortExpression="chejian" >
                                <ItemStyle Width="80px" />
                                </asp:BoundField>
                                <asp:BoundField DataField="banzu" HeaderText="班组" SortExpression="banzu" >
                                <ItemStyle Width="110px" />
                                </asp:BoundField>
                                <asp:BoundField DataField="chehao" HeaderText="车号" SortExpression="chehao" >
                                <ItemStyle Width="50px" />
                                </asp:BoundField>                                <asp:BoundField DataField="nian" HeaderText="年" SortExpression="nian" />
                                <asp:BoundField DataField="yue" HeaderText="月" SortExpression="yue" />
                                <asp:BoundField DataField="mingcheng" HeaderText="燃油种类" 
                                    SortExpression="mingcheng" >
                                <ItemStyle Width="60px" />
                                </asp:BoundField>
                                <asp:BoundField DataField="danjia" HeaderText="单价(元)" SortExpression="danjia" 
                                    DataFormatString="{0:c}" >
                                <ItemStyle Width="40px" />
                                </asp:BoundField>
                                <asp:BoundField DataField="banzushuliang" HeaderText="班组计划(升)" 
                                    SortExpression="banzushuliang" DataFormatString="{0:N0}" >
                                <ItemStyle Width="50px" />
                                </asp:BoundField>
                                <asp:BoundField DataField="chejianshuliang" HeaderText="车间审批(升)" 
                                    SortExpression="chejianshuliang" DataFormatString="{0:N0}" >
                                <ItemStyle Width="50px" />
                                </asp:BoundField>
                                <asp:BoundField DataField="duanshuliang" HeaderText="段审批(升)" 
                                    SortExpression="duanshuliang" DataFormatString="{0:N0}" >
                                <ItemStyle Width="40px" />
                                </asp:BoundField>
                                <asp:BoundField DataField="jine" HeaderText="金额(元)" 
                                    SortExpression="jine" DataFormatString="{0:c}" >
                                <ItemStyle Width="40px" />
                                </asp:BoundField>
                                <asp:BoundField DataField="gonglibiao" HeaderText="公里表底数" 
                                    SortExpression="gonglibiao" >
                                <ItemStyle Width="50px" />
                                </asp:BoundField>
                                <asp:BoundField DataField="yunxing" HeaderText="运行公里数" 
                                    SortExpression="yunxing" >
                                <ItemStyle Width="50px" />
                                </asp:BoundField>
                                <asp:BoundField DataField="addname" HeaderText="提报人" SortExpression="addname" >
                                <ItemStyle Width="40px" />
                                </asp:BoundField>
                                <asp:BoundField DataField="addtime" HeaderText="提报时间" 
                                    SortExpression="addtime" >
                                <ItemStyle Width="65px" />
                                </asp:BoundField>
                                <asp:BoundField DataField="chejianname" HeaderText="车间审批" 
                                    SortExpression="chejianname" >
                                <ItemStyle Width="55px" />
                                </asp:BoundField>
                                <asp:BoundField DataField="chejiantime" HeaderText="车间审批时间" 
                                    SortExpression="chejiantime" >
                                <ItemStyle Width="65px" />
                                </asp:BoundField>
                                <asp:BoundField DataField="duanname" HeaderText="段审批" 
                                    SortExpression="duanname" >
                                <ItemStyle Width="40px" />
                                </asp:BoundField>
                                <asp:BoundField DataField="duantime" HeaderText="段审批时间" 
                                    SortExpression="duantime" >
                                <ItemStyle Width="65px" />
                                </asp:BoundField>
                                <asp:BoundField DataField="cailiaoname" HeaderText="材料科受理" 
                                    SortExpression="cailiaoname" >
                                <ItemStyle Width="40px" />
                                </asp:BoundField>
                                <asp:BoundField DataField="lingquren" HeaderText="领取人" 
                                    SortExpression="lingquren" >
                                <ItemStyle Width="40px" />
                                </asp:BoundField>
                                <asp:BoundField DataField="lingqutime" HeaderText="领取时间" 
                                    SortExpression="lingqutime" DataFormatString="{0:d}" >
                                <ItemStyle Width="65px" />
                                </asp:BoundField>
                                <asp:BoundField DataField="zt" HeaderText="zt" SortExpression="zt" 
                                    Visible="False" />
                                <asp:BoundField DataField="liezhi" HeaderText="列支情况" 
                                    SortExpression="liezhi" >
                                <ItemStyle Width="60px" />
                                </asp:BoundField>
                                <asp:BoundField DataField="beizhu" HeaderText="备注" SortExpression="beizhu" >

                                <ItemStyle Width="100px" />
                                </asp:BoundField>

                            </Columns>
                            <EditRowStyle BackColor="#2461BF" />
                            <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                            <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                            <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                            <RowStyle BackColor="#EFF3FB" />
                            <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                        </asp:GridView>
                        </b>
                        <asp:SqlDataSource ID="SqlDataSource1" runat="server"></asp:SqlDataSource>
                        <br />
                        <asp:Label ID="label_zongjia" runat="server" 
                            style="color: #FF0000; font-weight: 700" Visible="False"></asp:Label>
                    </td>
                </tr>
            </table>
</div>
            </ContentTemplate>
        </asp:UpdatePanel>                
   </form>
    <p class="style21" style="TEXT-ALIGN: center">
        &nbsp;<br />
        &nbsp;安康供电段信息中心制作 2012</p>
    <p style="text-align: center">
        &nbsp;</p>
    </body>
</html>
